package org.jeecg.modules.bl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.bl.entity.BlSubExpenses;

import java.util.List;

/**
 * @Description: 计费明细
 * @Author: jeecg-boot
 * @Date:   2022-02-13
 * @Version: V1.0
 */
public interface BlSubExpensesMapper extends BaseMapper<BlSubExpenses> {

	//删除水费明细
	public boolean deleteByMainId(@Param("mainId") String mainId);

	//删除杂项明细
	public boolean deleteAlienByMainId(@Param("mainId") String mainId);

	//查询明细(水费+杂项)
	public List<BlSubExpenses> selectByMainId(@Param("mainId") String mainId);

	//查询杂项明细
	public List<BlSubExpenses> selectAlienByMainId(@Param("mainId") String mainId);

	//查询杂项欠费的计费明细
	public List<BlSubExpenses> selectAlienArrearByMainId(@Param("mainId") String mainId);
}
